package com.acme.bankapp.service.bank;

import com.acme.bankapp.domain.bank.Account;
/**
 * TODO: Please add file description for  @fileAccount.java
 * Created: Nov 8, 2013 5:32:22 PM
 */

/**
 * @author Andrey Alekov
 *
 */
public abstract class AbstractAccount implements Account{

	protected int id;
	protected double balance;

	public AbstractAccount(final double amount) {
		this.balance = amount;
	}

	public double getBalance() {
		return balance;
	}

	public abstract double maximumAmountToWithdraw();

	public abstract boolean deposit(final double amount);

	public abstract boolean withdraw(final double amount);
}
